Allows you to define and edit a relation between two tables.
2 つのテーブル間のリレーションを指定および編集できます。
|
To access this command...この機能の見つけ方 |
![]() | The update and delete options are only available if they are supported by the database used.
更新および削除のオプションが利用できるのは、使用するデータベースがこれらの機能をサポートしている場合だけです。 |
If you create a new relation, you can select one table from each of the combo boxes in the top part of the dialog.
新しいリンクを実行するには、ダイアログの上部にある2つのコンボボックスからそれぞれのテーブルを選択します。
If you opened the Relations dialog for an existing relation by double-clicking the connection lines in the Relation window, then the tables involved in the relation cannot be modified.
既存のリレーションに関して、ウィンドウ Relation 上での接続線のダブルクリックによりダイアログ Relations を開いた場合、このリレーションに関係しているテーブルに変更を加えることはできません。
Defines the key fields for the relation.
リレーションのキーフィールドを指定します。
The names of the tables selected for the link appear here as column names. If you click a field, you can use the arrow buttons to select a field from the table. Each relation is written in a row.
リンク用に選択したテーブルの名前は、ここでは列名として表示されます。 テーブル中のフィールドは、フィールドをクリックして矢印キーで選択できます。個々のリレーションは 1 列に表示されます。
Here you can select options that take effect when there are changes to a primary key field.
ここでは、プライマリキーフィールドの 1 つに変更が加えられた場合のオプションを指定します。
Specifies that any change made to a primary key does not affect other external key fields.
プライマリキーへの変更が、他の外部キーフィールドに影響しないよう指定します。
Updates all the external key fields if the value of the corresponding primary key has been modified (Cascading Update).
対応するプライマリキーの値が変更されたときに、外部キーフィールドをすべて更新する場合に (順送り更新)、このオプションを選択します。
If the corresponding primary key has been modified, use this option to set the "IS NULL" value to all external key fields. IS NULL means that the field is empty.
このオプションでは付属するメインキーが変更された場合、外部キーフィールドに「IS NULL」値が設定されます。ここでの「IS NULL」とは、データフィールドが空であるということです。
If the corresponding primary key has been modified, use this option to set a default value to all external key fields. During the creation of the corresponding table, the default value of an external key field will be defined when you assign the field properties.
このオプションでは、付属するメインキーが変更された場合、外部キーフィールドに標準値が設定されます。 この外部キーフィールドの標準値とは、付属するテーブルのフィールドのプロパティーが定義された際に設定された値です。
Here you can select options that take effect when a primary key field is deleted.
ここでは、プライマリキーフィールドの 1 つが削除された場合のオプションを指定します。
Specifies that the deletion of a primary key will not have any effect on other external key fields.
プライマリキーへの削除が、他の外部キーフィールドに影響しないよう指定します。
Specifies that all external key fields will be deleted if you delete the corresponding primary key field.
プライマリキーフィールドの 1 つを削除した場合に、対応するすべての外部キーフィールドも削除するよう指定します。
![]() | When you delete a primary key field with the Delete cascade option, all records from other tables that have this key as their foreign key are also deleted. Use this option with great care; it is possible that a major portion of the database can be deleted.
オプション カスケードの削除 をオンにしてプライマリキーフィールドの 1 つを削除した場合、他のテーブルからのレコードで、このキーを外部キーとしているものはすべて削除されます。データベースの大半のデータが削除される危険性もあるため、このオプションの使用には細心の注意が必要です。 |
If you delete the corresponding primary key, the "IS NULL" value will be assigned to all external key fields.
プライマリキーが削除された場合に、対応するすべての外部キーフィールドに「IS NULL」値を入力します。
If you delete the corresponding primary key, a set value will be set to all external key fields.
プライマリキーが削除された場合に、対応するすべての外部キーフィールドに指定値を入力します。